﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Clients
{
    public static class StringHelper
    {
        public static bool IsNumber(this string str)
        {
            int val;
            return int.TryParse(str, out val);
        } 


        public static long ToNumber(this string str)
        {
            long val = 0;
            long.TryParse(str, out val);
            return val;
        }
    }
}
